<!-- Content -->
<div id="content">

    <!-- Content wrapper -->
    <div class="wrapper">

        <!-- Breadcrumbs line -->
        <div class="crumbs">
            <ul id="breadcrumbs" class="breadcrumb"> 
                <li><a href="#">Panel</a></li>
                <li class="active"><a href="<?= base_url('publications') ?>" title="">Publicaciones</a></li>
            </ul>
        </div>
        <!-- /breadcrumbs line -->

        <!-- Page header -->
        <div class="page-header">
            <div class="page-title">
                <h5>Agregar Publicacion</h5>
                <span>CIEMPIESS-UNAM</span>
            </div>
        </div>
        <!-- /page header -->

        <?= @$mensaje; ?>

        <?= form_open_multipart('publications/guardarPublicacion') ?>
        <!-- Grid widgets -->
        <div class="row-fluid">
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>Español</h6></div></div>
                    <div class="well body">

                        <div class="control-group">
                            <label class="control-label">Titulo: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="200" name="titulo_es" value="<?= @$titulo_es; ?>" required />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Contenido:</label>
                            <div class="controls"><textarea rows="25" cols="5" maxlength="65000" name="contenido_es" class="span12" id="req" required ><?= @$contenido_es; ?></textarea></div>
                        </div>



                    </div>
                </div>
            </div>
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>Ingles</h6></div></div>
                    <div class="well body">

                        <div class="control-group">
                            <label class="control-label">Titulo: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="200" name="titulo_en" value="<?= @$titulo_en; ?>" id="req" required/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Contenido:</label>
                            <div class="controls"><textarea rows="25" cols="5" maxlength="65000" name="contenido_en" class="span12" required><?= @$contenido_en; ?></textarea></div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <!-- /grid widgets -->


        <div class="row-fluid">
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>General</h6></div></div>
                    <div class="well body">
                        <div class="control-group">
                            <label class="control-label">Autor: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="50" name="autor" value="<?= @$autor; ?>" required/>
                            </div>
                        </div> 


                        <div class="control-group">
                            <label class="control-label">Clasifiación:</label>
                            <div class="controls">
                                <select data-placeholder="Seleccione clasificación..." name="tipo" id="clear-results" tabindex="2" required>
                                    <option value=""></option> 
                                    <?php foreach ($class as $t) { ?>
                                        <option value="<?= $t->TIPO ?>"><?= $t->TIPO ?></option>
                                    <?php } ?>
                                </select>
                            </div>             
                        </div>

                        <div class="form-actions align-right">
                            <input name="publicar" type="submit" class="btn btn-info" value="PUBLICAR">
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <?= form_close() ?>



    </div>
    <!-- /content wrapper -->

</div>
<!-- /content -->

